{dede:config.pagesize value='20'/}
<!DOCTYPE html>
<html>
<head>
	<meta charset="<?php echo $cfg_soft_lang; ?>">
	<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
	<title>挑错管理</title>
	<link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
	<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
	<link rel="stylesheet" href="../static/web/css/admin.css">
</head>
<body>
	<script>
		function getOneItem() {
			var allSel = "";
			if (document.form2.id.value) return document.form2.id.value;
			for (i = 0; i < document.form2.id.length; i++) {
				if (document.form2.id[i].checked) {
					allSel = document.form2.id[i].value;
					break;
				}
			}
			return allSel;
		}
		function getCheckboxItem() {
			var allSel = "";
			if (document.form2.id.value) return document.form2.id.value;
			for (i = 0; i < document.form2.id.length; i++) {
				if (document.form2.id[i].checked) {
					if (allSel == "")
						allSel = document.form2.id[i].value;
					else
						allSel = allSel + "`" + document.form2.id[i].value;
				}
			}
			return allSel;
		}
		function selAll() {
			for (i = 0; i < document.form2.id.length; i++) {
				if (!document.form2.id[i].checked) {
					document.form2.id[i].checked = true;
				}
			}
		}
		function noSelAll() {
			for (i = 0; i < document.form2.id.length; i++) {
				if (document.form2.id[i].checked) {
					document.form2.id[i].checked = false;
				}
			}
		}
		function delArc(id) {
			var qstr = getCheckboxItem();
			location = "erraddsave.php?id=" + qstr + "&dopost=delete";
		}
	</script>
	<form name="form2">
		<table width="98%" align="center" cellpadding="3" cellspacing="1"
			class="table maintable mt-3 mb-3">
			<tr>
				<td height="26" background="../static/web/img/tbg.gif" colspan="8" style="padding-left:10px">文章错误管理</td>
			</tr>
			<tr align="center" bgcolor="#F8FCF1" height="26">
				<td width="5%">选择</td>
				<td width="7%">编号</td>
				<td width="12%">挑错人</td>
				<td width="20%">文章名称</td>
				<td width="12%">出错类型</td>
				<td width="14%">挑错时间</td>
				<td width="15%">错误内容</td>
				<td width="15%">修改建议</td>
			</tr>
			{dede:datalist empty='<tr><td colspan="8"><center>暂无内容</center></td></tr>'}
			<tr height="26" align="center"
				onMouseMove="javascript:this.bgColor='#F8FCF1';" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';">
				<td><input name="id" type="checkbox" id="id" value="{dede:field.id/}" class="np"></td>
				<td>{dede:field.id /}</td>
				<td>{dede:field.mid function='username(@me)'/}</td>
				<td><a href='archives_do.php?dopost=editArchives&aid={dede:field.aid/}'>{dede:field.title /}</a></td>
				<td>{dede:field.type function='typename(@me)'/}</td>
				<td>{dede:field.sendtime function='GetDateMk(@me)'/}</td>
				<td>{dede:field.errtxt /}</td>
				<td>{dede:field.oktxt /}</td>
			</tr>
			{/dede:datalist}
			<tr align="left" height="26">
				<td colspan="8">
					<a href="javascript:selAll()" class="btn btn-success btn-sm">全选</a>
					<a href="javascript:noSelAll()" class="btn btn-success btn-sm">取消</a>
					<a href="javascript:delArc(0)" class="btn btn-success btn-sm">删除</a>
				</td>
			</tr>
			<tr align="center" bgcolor="#f8f8f8" height="36">
				<td colspan="8">{dede:pagelist listsize='6'/}</td>
			</tr>
		</table>
	</form>
</body>
</html>